package testing;

import org.junit.Test;

import junit.framework.TestCase;
import logic.Country;
import logic.GameMap;

public class GameMapTest extends TestCase{

	@Test
	public void testGameMap() {
		GameMap map= new GameMap();
		assertNotNull("Map not printed", map.getCountries());
	}
	
	@Test
	public void testGetCountries() {
		GameMap map= new GameMap();
		System.out.println(map.toString());
		assertNotNull("Map not printed", map.toString());
	}

	@Test
	public void testRelateNeighbours() {
		GameMap map= new GameMap();
		Country first = new Country("first");
		Country second = new Country("second");
		
		map.relateNeighbours(first, second);
		assertEquals("second", first.getNeighbors().get(second.toString()).toString());
		assertEquals("first", second.getNeighbors().get(first.toString()).toString());
	}
	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}
}
